package com.l.demo.service;

import com.l.demo.model.MyUserDo;

public interface MyUserService {

    /**
     * 通过username, password获取用户对象
     * @param username 用户名
     * @param password 用户密码
     * @return 用户
     */
    MyUserDo getUser(String username, String password);

    boolean isExist(String username);

    MyUserDo registerUser(String username, String password);

    boolean logout(Integer id);
}
